﻿<UI:BaseHandlerView x:Class="TraceView.Shared.Handlers.DefaultHandler.DefaultHandlerView"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                    xmlns:UI="clr-namespace:TraceView.UI"
                    mc:Ignorable="d"
                    d:DesignHeight="300"
                    d:DesignWidth="300"
                    x:Name="defaultView">	
	<Grid DataContext="{Binding ElementName=defaultView}">
        <ContentControl Content="{Binding TraceMessage}">
            <ContentControl.ContentTemplate>
                <DataTemplate>
                    <TextBlock FontFamily="Consolas"
			                   TextWrapping="WrapWithOverflow"
			                   HorizontalAlignment="Left"
			                   VerticalAlignment="Center"
			                   Margin="10,10,10,10">
                        <TextBlock.Text>
                            <MultiBinding Converter="{UI:MultiValueLineTrimConverter}">
                                <Binding />
                                <Binding Path="LineCount" ElementName="defaultView"/>
                            </MultiBinding>
                        </TextBlock.Text>
                    </TextBlock>
                </DataTemplate>
            </ContentControl.ContentTemplate>
        </ContentControl>
    </Grid>
</UI:BaseHandlerView>

